#include "Gyroscope.h"
#include <iostream>
#include <iomanip>

Gyroscope::Gyroscope() {}

Gyroscope::Gyroscope(const std::string& model, const std::string& manufacturer)
    : model(model), manufacturer(manufacturer) {}

// Getters
std::string Gyroscope::getModel() const { return model; }
std::string Gyroscope::getManufacturer() const { return manufacturer; }

// Setters
void Gyroscope::setModel(const std::string& model) { this->model = model; }
void Gyroscope::setManufacturer(const std::string& manufacturer) { this->manufacturer = manufacturer; }

void Gyroscope::display() const {
    std::cout << "9轴陀螺仪信息:" << std::endl;
    std::cout << "  型号: " << model << std::endl;
    std::cout << "  厂家: " << manufacturer << std::endl;
}